//
//  BaseChart.m
//  edu
//
//  Created by baobaodp on 13-11-10.
//  Copyright (c) 2013年 baobaodp. All rights reserved.
//

#import "BaseChart.h"
#import "SeriesItem.h"

@implementation BaseChart

@synthesize dataSource;
@synthesize serieses;
@synthesize title;

-(id)init
{
    if (self=[super init]) {
        //custom
        self.serieses = [[NSMutableArray alloc]init];
    }
    return self;
}

-(NSString *)getDataSource
{
    return @"";
}

-(NSString *) createChartScript
{
    return @"";
}

-(NSString *) getSeries
{
    return @"";
}

-(NSString *) customizeScript
{
    return @"";
}

-(void)addSeries:(NSString *)fieldName  name:(NSString *) nameStr
{
    [self.serieses addObject:[[SeriesItem alloc] initWithField:fieldName name:nameStr]];
    
}


@end
